package com.fy.market.persistent.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.sql.Timestamp;
import java.util.Date;

/**
 * 策略表
 * @author fwq
 * @date 2025-09-03
 * @desc 策略表
 * @TableName: strategy
 * @Package: com.fy.market.infrastructure.po
 */
@Data
@TableName("strategy")
public class Strategy {
    /**
     * 自增ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 策略ID
     */
    @TableField(value = "strategy_id")
    private Integer strategyId;
    /**
     * 策略规则模型id
     */
    private String ruleModelIds;
    /**
     *  策略兜底奖品
     */
    @TableField(value = "guaranteed_award_id")
    private Integer guaranteedAwardId;
    /**
     * 策略状态 1正常 0禁用
     */
    @TableField(value = "status")
    private Integer status;
    /**
     * 策略描述
     */
    @TableField(value = "strategy_desc")
    private String strategyDesc;
    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;
    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Timestamp updateTime;
}
